NextPrime
NextPrime[x] gives the smallest prime above x.
NextPrime[x,k] gives the kth-next prime above x.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.
NextPrime[x] gives the smallest prime above x.
NextPrime[x,k] gives the kth-next prime above x.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.